Comparison Types
The enumerationCDCompareType
specifies the possible outcomes of theCyberItem::Compare
method (page 230), which compares two Cyberdog items according to an order defined by the Cyberdog item developer. For example, a developer implementing a Cyberdog item subclass might order Cyberdog items of the subclass by performing an ASCII comparison of their URL strings.
enum CDCompareType { kCDCompareLessThan, kCDCompareEqual, kCDCompareGreaterThan };Constants of this type
kCDCompareLessThan
- The receiving Cyberdog item occurs earlier in the order than the other Cyberdog item.
kCDCompareEqual
- The receiving Cyberdog item and the other Cyberdog item are equal.
kCDCompareGreaterThan
- The receiving Cyberdog item occurs later in the order than the other Cyberdog item.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help